package com.intermancer.predictor.lifecycle;

import com.intermancer.predictor.breed.BreedStrategy;

public class BreedCommand extends LifecycleCommandBase {
	
	private BreedStrategy breedStrategy;
	
	public BreedCommand() {
		// Nothing.
	}

	public BreedCommand(BreedStrategy breedStrategy) {
		this.breedStrategy = breedStrategy;
	}

	@Override
	boolean innerExecute(LifecycleContext context) {
		context.setChildren(breedStrategy.breed(context.getParents()));
		return false;
	}

}
